<div class="head">
    登录
</div>
<div class="body" ng-submit="login()">
    <field -repeat="f in fields" -src="[f,data]"></field>
</div>
<div class="foot">
    <a @click="popup('#/user/register')" ng-if='!login.ing'>注册新用户</a>
    <btn type="white" ng-click='event.preventDefault(),close()'>取消</btn>
    <button type="submit" @click="login()">登录</button>
</div>